package com.example.imoocportal.controller;

import com.example.imooccommon.entity.consts.ConstsSiteCarousel;
import com.example.imooccommon.service.constsservice.ConstsSiteCarouselServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * @Author Anita
 * @Date 2018/1/22 11:22
 */
@Controller
public class PortalController {

    @Autowired
    private ConstsSiteCarouselServiceImpl constsSiteCarouselService;

    @RequestMapping("/index")
    public ModelAndView index(){
        //加载轮播
        List<ConstsSiteCarousel> constsSiteCarouselList = constsSiteCarouselService.queryCarousel(4);
        return null;
    }
}
